package cn.wolfcode.luowowo.article.query;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class TravelCondition implements Serializable {
    private Integer min;
    private Integer max;



    public static final Map<Integer, TravelCondition> travelTimes = new HashMap<>();

    static{
        travelTimes.put(-1,new TravelCondition(1,12));
        travelTimes.put(1,new TravelCondition(1,2));
        travelTimes.put(2,new TravelCondition(3,4));
        travelTimes.put(3,new TravelCondition(5,6));
        travelTimes.put(4,new TravelCondition(7,8));
        travelTimes.put(5,new TravelCondition(9,10));
        travelTimes.put(6,new TravelCondition(11,12));

    }

    public static final Map<Integer, TravelCondition> Days = new HashMap<>();

    static{
        Days.put(-1,new TravelCondition(1,Integer.MAX_VALUE));
        Days.put(1,new TravelCondition(1,3));
        Days.put(2,new TravelCondition(4,7));
        Days.put(3,new TravelCondition(8,14));
        Days.put(4,new TravelCondition(15,Integer.MAX_VALUE));

    }

    public static final Map<Integer, TravelCondition> PerExpend = new HashMap<>();

    static{
        PerExpend.put(-1,new TravelCondition(1,Integer.MAX_VALUE));
        PerExpend.put(1,new TravelCondition(1,999));
        PerExpend.put(2,new TravelCondition(1000,6000));
        PerExpend.put(3,new TravelCondition(6001,20000));
        PerExpend.put(4,new TravelCondition(20001,Integer.MAX_VALUE));

    }



}
